/ TeX 1995 July
/ TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / plain / contrib / verbtim2.tex ![]() | < prev | next > |
LaTeX Document | 1992-08-26 | 1.2 KB |
Confidence | Program | Detection | Match Type | Support |
---|---|---|---|---|
100% | dexvert | LaTeX Document (document/latex) | magic | Supported |
100% | dexvert | Texinfo Document (document/texInfo) | magic | Supported |
1% | dexvert | Corel 10 Texture (image/corel10Texture) | ext | Unsupported |
1% | dexvert | Croteam texture file (image/croteamTextureFile) | ext | Unsupported |
1% | dexvert | Text File (text/txt) | fallback | Supported |
100% | file | TeX document text | default | |
99% | file | LaTeX document, ASCII text | default | |
100% | checkBytes | Printable ASCII | default | |
100% | perlTextCheck | Likely Text (Perl) | default | |
100% | detectItEasy | Format: plain text[LF] | default (weak) | |
100% | xdgMime | text/x-matlab | default (weak) |
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 25 20 46 72 6f 6d 3a 20 | 54 69 6d 20 4d 6f 72 67 |% From: |Tim Morg|
|00000010| 61 6e 20 3c 6d 6f 72 67 | 61 6e 40 75 63 69 2d 69 |an <morg|an@uci-i|
|00000020| 63 73 61 3e 0a 25 20 50 | 72 6f 64 75 63 65 20 76 |csa>.% P|roduce v|
|00000030| 65 72 62 61 74 69 6d 20 | 6c 69 73 74 69 6e 67 73 |erbatim |listings|
|00000040| 20 6f 66 20 76 61 72 69 | 6f 75 73 20 73 6f 72 74 | of vari|ous sort|
|00000050| 73 0a 20 0a 5c 64 65 66 | 5c 75 6e 63 61 74 63 6f |s. .\def|\uncatco|
|00000060| 64 65 73 70 65 63 69 61 | 6c 73 7b 5c 64 65 66 5c |despecia|ls{\def\|
|00000070| 64 6f 23 23 31 7b 5c 63 | 61 74 63 6f 64 65 60 23 |do##1{\c|atcode`#|
|00000080| 23 31 3d 31 32 20 7d 20 | 5c 64 6f 73 70 65 63 69 |#1=12 } |\dospeci|
|00000090| 61 6c 73 7d 0a 20 0a 5c | 64 65 66 5c 73 65 74 75 |als}. .\|def\setu|
|000000a0| 70 76 65 72 62 61 74 69 | 6d 7b 25 0a 20 20 20 20 |pverbati|m{%. |
|000000b0| 5c 70 61 72 20 5c 74 74 | 20 5c 73 70 61 63 65 73 |\par \tt| \spaces|
|000000c0| 6b 69 70 3d 30 70 74 20 | 25 20 4d 61 6b 65 20 73 |kip=0pt |% Make s|
|000000d0| 75 72 65 20 77 65 20 67 | 65 74 20 66 69 78 65 64 |ure we g|et fixed|
|000000e0| 20 74 74 20 73 70 61 63 | 69 6e 67 0a 20 20 20 20 | tt spac|ing. |
|000000f0| 5c 6f 62 65 79 6c 69 6e | 65 73 5c 75 6e 63 61 74 |\obeylin|es\uncat|
|00000100| 63 6f 64 65 73 70 65 63 | 69 61 6c 73 5c 6f 62 65 |codespec|ials\obe|
|00000110| 79 73 70 61 63 65 73 5c | 76 65 72 62 61 74 69 6d |yspaces\|verbatim|
|00000120| 64 65 66 73 0a 7d 0a 20 | 0a 25 20 54 68 69 73 20 |defs.}. |.% This |
|00000130| 6d 61 63 72 6f 20 74 75 | 72 6e 73 20 6f 6e 20 76 |macro tu|rns on v|
|00000140| 65 72 62 61 74 69 6d 20 | 6d 6f 64 65 20 75 6e 74 |erbatim |mode unt|
|00000150| 69 6c 20 3f 65 6e 64 76 | 65 72 62 61 74 69 6d 20 |il ?endv|erbatim |
|00000160| 69 73 20 73 65 65 6e 2e | 0a 5c 64 65 66 5c 76 65 |is seen.|.\def\ve|
|00000170| 72 62 61 74 69 6d 7b 5c | 62 65 67 69 6e 67 72 6f |rbatim{\|begingro|
|00000180| 75 70 20 5c 73 65 74 75 | 70 76 65 72 62 61 74 69 |up \setu|pverbati|
|00000190| 6d 0a 20 20 5c 70 61 72 | 73 6b 69 70 3d 30 70 74 |m. \par|skip=0pt|
|000001a0| 20 70 6c 75 73 20 2e 30 | 35 5c 62 61 73 65 6c 69 | plus .0|5\baseli|
|000001b0| 6e 65 73 6b 69 70 20 5c | 70 61 72 69 6e 64 65 6e |neskip \|parinden|
|000001c0| 74 3d 30 70 74 0a 20 20 | 20 5c 63 61 74 63 6f 64 |t=0pt. | \catcod|
|000001d0| 65 60 5c 20 3d 31 33 20 | 5c 63 61 74 63 6f 64 65 |e`\ =13 |\catcode|
|000001e0| 60 5c 5e 5e 4d 3d 31 33 | 20 5c 63 61 74 63 6f 64 |`\^^M=13| \catcod|
|000001f0| 65 60 5c 3f 3d 30 0a 20 | 20 20 5c 76 65 72 62 61 |e`\?=0. | \verba|
|00000200| 74 69 6d 67 6f 62 62 6c | 65 7d 0a 7b 5c 63 61 74 |timgobbl|e}.{\cat|
|00000210| 63 6f 64 65 60 5c 5e 5e | 4d 3d 31 33 7b 5c 63 61 |code`\^^|M=13{\ca|
|00000220| 74 63 6f 64 65 60 5c 20 | 3d 31 33 5c 67 64 65 66 |tcode`\ |=13\gdef|
|00000230| 5c 76 65 72 62 61 74 69 | 6d 64 65 66 73 7b 5c 64 |\verbati|mdefs{\d|
|00000240| 65 66 5e 5e 4d 7b 5c 20 | 5c 70 61 72 7d 5c 6c 65 |ef^^M{\ |\par}\le|
|00000250| 74 20 3d 5c 20 7d 7d 0a | 20 20 5c 67 64 65 66 5c |t =\ }}.| \gdef\|
|00000260| 76 65 72 62 61 74 69 6d | 67 6f 62 62 6c 65 23 31 |verbatim|gobble#1|
|00000270| 5e 5e 4d 7b 7d 7d 0a 20 | 0a 25 20 54 68 69 73 20 |^^M{}}. |.% This |
|00000280| 64 65 66 69 6e 65 73 20 | 3f 65 6e 64 76 65 72 62 |defines |?endverb|
|00000290| 61 74 69 6d 20 74 6f 20 | 65 6e 64 20 74 68 65 20 |atim to |end the |
|000002a0| 67 72 6f 75 70 20 77 68 | 69 63 68 20 62 65 67 69 |group wh|ich begi|
|000002b0| 6e 73 20 77 69 74 68 20 | 5c 76 65 72 62 61 74 69 |ns with |\verbati|
|000002c0| 6d 0a 5c 6c 65 74 5c 65 | 6e 64 76 65 72 62 61 74 |m.\let\e|ndverbat|
|000002d0| 69 6d 3d 5c 65 6e 64 67 | 72 6f 75 70 0a 20 0a 25 |im=\endg|roup. .%|
|000002e0| 20 49 6e 70 75 74 20 61 | 20 66 69 6c 65 20 69 6e | Input a| file in|
|000002f0| 20 76 65 72 62 61 74 69 | 6d 20 6d 6f 64 65 2e 20 | verbati|m mode. |
|00000300| 20 53 6f 6d 65 74 69 6d | 65 73 20 75 73 65 66 75 | Sometim|es usefu|
|00000310| 6c 20 66 6f 72 20 69 6e | 63 6c 75 64 69 6e 67 0a |l for in|cluding.|
|00000320| 25 20 72 65 61 6c 2d 6c | 69 66 65 20 65 78 61 6d |% real-l|ife exam|
|00000330| 70 6c 65 73 20 69 6e 74 | 6f 20 61 20 70 61 70 65 |ples int|o a pape|
|00000340| 72 2e 0a 5c 64 65 66 5c | 76 65 72 62 66 69 6c 65 |r..\def\|verbfile|
|00000350| 23 31 7b 5c 62 65 67 69 | 6e 67 72 6f 75 70 5c 73 |#1{\begi|ngroup\s|
|00000360| 65 74 75 70 76 65 72 62 | 61 74 69 6d 0a 20 20 20 |etupverb|atim. |
|00000370| 20 5c 70 61 72 73 6b 69 | 70 3d 30 70 74 20 70 6c | \parski|p=0pt pl|
|00000380| 75 73 20 2e 30 35 5c 62 | 61 73 65 6c 69 6e 65 73 |us .05\b|aselines|
|00000390| 6b 69 70 20 5c 70 61 72 | 69 6e 64 65 6e 74 3d 30 |kip \par|indent=0|
|000003a0| 70 74 0a 20 20 20 20 5c | 69 6e 70 75 74 23 31 20 |pt. \|input#1 |
|000003b0| 5c 65 6e 64 67 72 6f 75 | 70 0a 7d 0a 20 0a 25 20 |\endgrou|p.}. .% |
|000003c0| 54 68 69 73 20 69 73 20 | 74 68 65 20 73 61 6d 65 |This is |the same|
|000003d0| 20 61 73 20 74 68 65 20 | 61 62 6f 76 65 2c 20 62 | as the |above, b|
|000003e0| 75 74 20 69 74 20 61 64 | 64 73 20 6c 69 6e 65 20 |ut it ad|ds line |
|000003f0| 6e 75 6d 62 65 72 73 20 | 74 6f 20 65 61 63 68 0a |numbers |to each.|
|00000400| 25 20 6c 69 6e 65 20 6f | 66 20 74 68 65 20 66 69 |% line o|f the fi|
|00000410| 6c 65 20 70 72 69 6e 74 | 65 64 2e 0a 5c 6e 65 77 |le print|ed..\new|
|00000420| 63 6f 75 6e 74 5c 6c 69 | 6e 65 6e 6f 0a 5c 64 65 |count\li|neno.\de|
|00000430| 66 5c 6c 69 73 74 69 6e | 67 23 31 7b 5c 6c 69 6e |f\listin|g#1{\lin|
|00000440| 65 6e 6f 3d 30 5c 62 65 | 67 69 6e 67 72 6f 75 70 |eno=0\be|gingroup|
|00000450| 5c 73 65 74 75 70 76 65 | 72 62 61 74 69 6d 0a 20 |\setupve|rbatim. |
|00000460| 20 20 20 5c 70 61 72 73 | 6b 69 70 3d 30 70 74 20 | \pars|kip=0pt |
|00000470| 70 6c 75 73 20 2e 30 35 | 5c 62 61 73 65 6c 69 6e |plus .05|\baselin|
|00000480| 65 73 6b 69 70 20 5c 70 | 61 72 69 6e 64 65 6e 74 |eskip \p|arindent|
|00000490| 3d 32 30 70 74 0a 20 20 | 20 20 5c 65 76 65 72 79 |=20pt. | \every|
|000004a0| 70 61 72 7b 5c 61 64 76 | 61 6e 63 65 5c 6c 69 6e |par{\adv|ance\lin|
|000004b0| 65 6e 6f 20 62 79 20 31 | 20 5c 6c 6c 61 70 7b 5c |eno by 1| \llap{\|
|000004c0| 74 68 65 5c 6c 69 6e 65 | 6e 6f 5c 20 5c 20 7d 7d |the\line|no\ \ }}|
|000004d0| 5c 69 6e 70 75 74 23 31 | 0a 20 20 20 20 5c 65 6e |\input#1|. \en|
|000004e0| 64 67 72 6f 75 70 0a 7d | 0a |dgroup.}|. |
+--------+-------------------------+-------------------------+--------+--------+